<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'test.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link type="text/css" href="/ag/css/dialog/jquery.ui.all.css" rel="stylesheet" />
		<script type="text/javascript" src="/ag/js/dialog/jquery-1.4.2.js"></script>
		<script type="text/javascript"
			src="/ag/css/dialog/jquery.bgiframe-2.1.1.js"></script>
		<script type="text/javascript" src="/ag/js/dialog/jquery.ui.core.js"></script>
		<script type="text/javascript" src="/ag/js/dialog/jquery.ui.widget.js"></script>
		<script type="text/javascript" src="/ag/js/dialog/jquery.ui.mouse.js"></script>
		<script type="text/javascript" src="/ag/js/dialog/jquery.ui.button.js"></script>
		<script type="text/javascript" src="/ag/js/dialog/jquery.ui.draggable.js"></script>
		<script type="text/javascript" src="/ag/js/dialog/jquery.ui.position.js"></script>
		<script type="text/javascript" src="/ag/js/dialog/jquery.ui.resizable.js"></script>
		<script type="text/javascript" src="/ag/js/dialog/jquery.ui.dialog.js"></script>
		<script type="text/javascript" src="/ag/js/dialog/jquery.effects.core.js"></script>
		<script type="text/javascript" src="/ag/lwc/js/editEventSource.js"></script>
		<script type="text/javascript" src="/ag/lwc/js/addEventSource.js"></script>
		<script type="text/javascript" src="/ag/lwc/js/deleteEventSource.js"></script>
		<script type="text/javascript" src="/ag/lwc/js/button.js"></script>
	<style type="text/css">
		body { font-size: 62.5%;margin-left:0;margin-top:0;margin-right:0; }
		label { display:block; font-size:15px;font-weight:500;}
		input.text { margin-bottom:12px; width:95%; padding: .4em;height:30px;; width:250px;}
		fieldset { padding:0; border:0; margin-top:25px; }
		h1 { font-size: 1.2em; margin: .6em 0; }
		div#users-contain { width: 350px; margin: 20px 0; }
		div#users-contain table { margin: 1em 0; border-collapse: collapse; width: 100%; }
		div#users-contain table td, div#users-contain table th { border: 1px solid #eee; padding: .6em 10px; text-align: left; }
		.ui-dialog .ui-state-error { padding: .3em; }
		.validateTips { border: 0px solid transparent; padding: 0.3em; width:95% }
		
		#add{;}
	</style>


  </head>
  
  <body>
  <table width="102%" border="0" align="center" cellpadding="0" cellspacing="0" class="tb">
  <tr height="30">
    <td height="30">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="15" height="30"><img src="/ag/tab/images/tab_03.gif" width="15" height="30" /></td>
              <td width="1108" background="/ag/tab/images/tab_05.gif"><img src="/ag/tab/images/311.gif" width="16" height="16" /><span class="STYLE4">事件来源</span></td>
        <td align="center" width="280" background="/ag/tab/images/tab_05.gif"><button id="addbut" class="add" style="width: 50px; height: 25px; border: 0px"/></button></td>
         <td align="center" width="280" background="/ag/tab/images/tab_05.gif"><button id="addbut2" class="return" style="width: 50px; height: 25px; border: 0px"/></button></td>
        <td width="14"><img src="/ag/tab/images/tab_07.gif" width="14" height="30" /></td>
      </tr>
    </table>
    </td>
  </tr>
  <tr>
    <td>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="9" background="/ag/tab/images/tab_12.gif">&nbsp;</td>
        <td bgcolor="#dceffd">
        <table id="myTable" width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#84b1d3" >       
          <tr>           
           
            <td width="24%" height="18" background="/ag/tab/images/tab_14.gif" ><div align="center" >事件来源</div></td>
            
            <td width="7%" height="18"  background="/ag/tab/images/tab_14.gif"><div align="center" >编辑</div></td>
            <td width="7%" height="18" background="/ag/tab/images/tab_14.gif" ><div align="center" >删除</div></td>
          </tr>
          
          <c:forEach var='result' items='${result}' varStatus='status'>
          <tr class="list">
            <td height="18" bgcolor="#FFFFFF" align="center">${result.esEventSource}</td>            
        
            <td height="18" bgcolor="#FFFFFF" align="center"><button class="modify" value="修改"  name=${result.esId} style="width: 50px; height: 25px; border: 0px"/></button></td>
            <td height="18" bgcolor="#FFFFFF" align="center"><button class="delete" name=${result.esId} value="删除" style="width: 50px; height: 25px; border: 0px"/></button></td>
          </tr>
          </c:forEach>
         
       </table></td>
        <td width="9" background="/ag/tab/images/tab_16.gif">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr >
    <td height="29" colspan="3">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr >
        <td width="15" height="29"><img src="/ag/tab/images/tab_20.gif" width="15" height="29" /></td>
        <td background="/ag/tab/images/tab_21.gif" width="100%"></td>
        <td width="14"><img src="/ag/tab/images/tab_22.gif" width="14" height="29" /></td>
      </tr>
    </table>
    </td>
  </tr>
</table>
   <div class="demo" style="display:none;">
				<!-- 编辑的弹出框 -->
				<div id="edit" title="编辑">
					<p class="validateTips"></p>
					<form class="one">
						<fieldset>
							<input type="hidden" name="esId" value="" id="editesId"/>
							<label for="editesEventSource">
								事件来源(必填 ，长度小于15汉字)
							</label>
							<input type="text" name="esEventSource" id="editesEventSource" class="text ui-widget-content ui-corner-all" />
						</fieldset>
					</form>
					<!-- 确认修改的弹出框 -->
					<div id="editConfirm">
						<label>确定?</label>
					</div>
			
			</div>
			<!-- 增加的弹出框 -->
			<div id="add" title="增加">
				<p class="validateTips"></p>

				<form class="one">
					<fieldset>
						<label for="esEventSource">
							事件来源(必填 ，长度小于15汉字)
						</label>
						<input type="text" name="esEventSource" id="addesEventSource" class="text ui-widget-content ui-corner-all" />
						
					</fieldset>
				</form>
			<!-- 确认增加的弹出框 -->
					<div id="addConfirm">
						<label>确定?</label>
					</div>
			</div>
			<!-- 确认删除的对话框 -->
			<div id="deleteConfirm">
				<label>确定?</label>
			</div>
			<!-- 点击增加的按钮 -->
			<!--
			<button id="addbut">
				Create new user
			</button>
			-->
		<!-- 操作结果的提示框 -->	
		<div id="message">
		</div>
		
</div>
		
  </body>
</html>



